package com.woniu.market_stall_web.service;

import com.woniu.market_stall_web.mapper.StallAuctionMapper;
import com.woniu.market_stall_web.vo.StallAuctionVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StallAuctionService {
    @Autowired
    StallAuctionMapper stallAuctionMapper;

    public List<StallAuctionVo> queryBidding(String username){
        return stallAuctionMapper.selectBidding(username);
    }

    public List<StallAuctionVo> queryAll(String username){
        return stallAuctionMapper.select(username);
    }

    public List<StallAuctionVo> querywin(String username){
        return stallAuctionMapper.selectWin(username);
    }
}
